package com.dnr.arch.kernel.services.persistence.relations;

import com.dnr.arch.kernel.api.model.MetaClassInterface;
import com.dnr.arch.kernel.api.model.relations.Cardinality;
import com.dnr.arch.kernel.api.model.relations.Relation;

public class CardinalityJPAImpl implements Cardinality{

	private Relation relation;
	private MetaClassInterface metaClass;
	private String min;
	private String max;
	
	public CardinalityJPAImpl(Relation relation, MetaClassInterface metaClass, String min, String max){
		this.relation = relation;
		this.metaClass = metaClass;
		this.max = max;
		this.min = min;
	}
	
	@Override
	public String getMinCardinality() {
		return min;
	}

	@Override
	public String getMaxCardinality() {
		return max;
	}

	@Override
	public Relation getRelation() {
		return relation;
	}

	@Override
	public MetaClassInterface getMetaClass() {
		return metaClass;
	}
	
	

}
